#include <iostream>
#include <unordered_map>
#include <vector>
#include <string>
using namespace std;

unordered_map<string, int> numberMap = {
    {"zero", 0}, {"one", 1}, {"two", 2}, {"three", 3}, {"four", 4},
    {"five", 5}, {"six", 6}, {"seven", 7}, {"eight", 8}, {"nine", 9},
    {"ten", 10}, {"eleven", 11}, {"twelve", 12}, {"thirteen", 13},
    {"fourteen", 14}, {"fifteen", 15}, {"sixteen", 16}, {"seventeen", 17},
    {"eighteen", 18}, {"nineteen", 19}, {"twenty", 20}, {"thirty", 30},
    {"forty", 40}, {"fifty", 50}, {"sixty", 60}, {"seventy", 70},
    {"eighty", 80}, {"ninety", 90}
};

unordered_map<int,string> engStrMap = {
    {0, "zero"}, {1, "one"}, {2, "two"}, {3, "three"},
    {4, "four"}, {5, "five"}, {6, "six"}, {7, "seven"},
    {8, "eight"}, {9, "nine"}, {10, "ten"}, {11, "eleven"},
    {12, "twelve"}, {13, "thirteen"}, {14, "fourteen"}, {15, "fifteen"},
    {16, "sixteen"}, {17, "seventeen"}, {18, "eighteen"}, {19, "nineteen"},
    {20, "twenty"}, {30, "thirty"}, {40, "forty"}, {50, "fifty"},
    {60, "sixty"}, {70, "seventy"}, {80, "eighty"}, {90, "ninety"}
};

// 注意：以上的哈希数据来源于https://gitee.com/ZHY_MARIO/noj/tree/main/56Kids%20A+B
// 提供者：ZHY_MARIO
// Kids会偷懒，难道我就不会吗，一个一个手动输入单词我是绝对不能接受的
// 下面是我自己的代码

int engStrToNum(string source) {
    if (numberMap.find(source) != numberMap.end()) {
        return numberMap[source];
    }
    int spliter = (int)source.find('-');
    int result = numberMap[source.substr(0, spliter)]
    + numberMap[source.substr(spliter + 1)];
    return result;
}

string numToengStr(int num) {
    if (engStrMap.find(num) != engStrMap.end()) {
        return engStrMap[num];
    }
    else {
        return engStrMap[(num / 10) * 10] + "-" + engStrMap[num % 10];
    }
}

int main() {
    string target1, target2; cin >> target1 >> target2;
    int num1 = engStrToNum(target1);
    int num2 = engStrToNum(target2);
    int sum = num1 + num2;
    string result = numToengStr(sum);
    cout << result;
    return 0;
}